import { request } from '@vipl520/utils'

const path = '/gs_gold/admin.work/'

export function getWorkByIds(ids, source = 'select') {
  return request({
    url: '/gs_gold/app.work/getWorkByIds',
    method: 'post',
    data: { ids, source }
  })
}

export function getDiy(pid) {
  return request(
    {
      url: path + 'getDiy',
      method: 'post',
      data: { pid }
    },
    {
      code_error_show: true
    }
  )
}
export function setDiy(pid, diyData) {
  return request(
    {
      url: path + 'setDiy',
      method: 'post',
      data: { pid, diyData }
    },
    {
      code_success_show: true
    }
  )
}
